<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <span>v-for demo</span>
        <li v-for="value in users" >{{value.name}}</li>
<!--        注：v-for得到key之后,key值才给了 :key-->
        <li v-for="(value,key) in users" :key="key">{{value.name}} {{key}}
            <span v-for="(value,key,index) in value">{{key}}={{value}} {{index}}</span>
        </li>
    </div>
    <script>
        let mv = new Vue({
            el:"#app",
            data:{
                users:[
                    {name:"songyahui",age:"18",sex:"man"},
                    {name:"songyahui",age:"18",sex:"man"},
                    {name:"songyahui",age:"18",sex:"man"},
                    {name:"songyahui",age:"18",sex:"man"},
                    {name:"songyahui",age:"18",sex:"man"},
                    {name:"songyahui",age:"18",sex:"man"},
                ]
            }
        })
    </script>
</body>
</html>